<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class VideoInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('video',function(Blueprint $table){
            $table->bigIncrements('id')->unsigned;
            $table->bigInteger('case_id')->index()->nullable()->unsigned;
            $table->string('title', 50)->nullable();
            $table->string('description')->nullable();
            $table->enum('left_or_right',array('OS'=>'OS','OD'=>'OD'))->nullable();
            $table->string('video_url')->nullable();        
            $table->timestamps();            
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('video');
    }
}
